package pattern.observer.origin;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

// 微信用户类，具体的观察者
@NoArgsConstructor
@AllArgsConstructor
public class WeixinUser implements Observer {
    private String name;
    @Override
    public void update(String message) {
        System.out.println(name + "接收到了消息（观察到了）：" + message);
    }
}
